﻿using System.Windows;
using cloud_store_rest_api_dotnet4;

namespace TestWPF
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            var dropBoxApi = new dotnet4DropBoxAPI("pj2vx2jvcnh4y35", "ar25y40ty4q2bof", "skv80w38fydupi9", "q85qna6gcb0xce9");
            dropBoxApi.GetFileString("access_token", GetFileCallBack);
        }

        private void GetFileCallBack(string text)
        {
            textBlock.Text = text;
        }
    }
}
